//
//  YGHXManager.h
//  HXSDKDemo
//
//  Created by 黄德玉 on 2018/6/25.
//  Copyright © 2018年 none. All rights reserved.
//

#import <Foundation/Foundation.h>

#define YG_HX_APPKEY @"1496170929061683#kefuchannelapp11866"
#define YG_HX_TENANTID @"80799"
#define YG_IM_FUWUHAO @"kefuchannelimid_610545"

@interface YGHXUserModel :NSObject

@property (nonatomic,copy) NSString * userName;
@property (nonatomic,copy) NSString * pssword;
@property (nonatomic,copy) NSString * avator;

@end

@interface YGHXManager : NSObject

@property (nonatomic,assign,readonly) BOOL hasSetupSuccess;
@property (nonatomic,strong,readonly) YGHXUserModel * hxUser;

+ (instancetype)sharedManger;

- (BOOL)setup;

- (void)registerUserWithCallback:(void(^)(NSError * err, id responseObject)) callback;

- (BOOL)login;

- (BOOL)logout;

@end
